300
|
How do I get the handle of the cell
![](images/extreeq300.png)
Dim h
With Extree1
.Columns.Add("Default")
With .Items
h = .AddItem("Root 1")
.InsertItem(h,Nothing,"Child 1")
.InsertItem(h,Nothing,"Child 2")
.set_ExpandItem(h,True)
.set_CellBold(Nothing,.get_ItemCell(h,0),True)
End With
End With
|
299
|
How do I retrieve the focused item
![](images/extreeq299.png)
Dim h
With Extree1
.Columns.Add("Default")
With .Items
h = .AddItem("Root 1")
.InsertItem(h,Nothing,"Child 1")
.InsertItem(h,Nothing,"Child 2")
.set_ExpandItem(h,True)
.set_ItemBold(.FocusItem,True)
End With
End With
|
298
|
How do I get the number or count of child items
![](images/extreeq298.png)
Dim h
With Extree1
.Columns.Add("Default")
With .Items
h = .AddItem("Root 1")
.InsertItem(h,Nothing,"Child 1")
.InsertItem(h,Nothing,"Child 2")
.set_ExpandItem(h,True)
.AddItem(.get_ChildCount(h))
End With
End With
|
297
|
How do I enumerate the visible items
![](images/extreeq297.png)
Dim h
With Extree1
.Columns.Add("Default")
With .Items
h = .AddItem("Root 1")
.InsertItem(h,Nothing,"Child 1")
.InsertItem(h,Nothing,"Child 2")
.set_ExpandItem(h,True)
h = .AddItem("Root 2")
.set_ItemBold(.FirstVisibleItem,True)
.set_ItemBold(.get_NextVisibleItem(.FirstVisibleItem),True)
End With
End With
|
296
|
How do I enumerate the siblings items
![](images/extreeq296.png)
Dim h
With Extree1
.Columns.Add("Default")
With .Items
h = .AddItem("Root 1")
.InsertItem(h,Nothing,"Child 1")
.InsertItem(h,Nothing,"Child 2")
.set_ExpandItem(h,True)
h = .AddItem("Root 2")
.set_ItemBold(.get_NextSiblingItem(.FirstVisibleItem),True)
.set_ItemBold(.get_PrevSiblingItem(.get_NextSiblingItem(.FirstVisibleItem)),True)
End With
End With
|
295
|
How do I get the parent item
![](images/extreeq295.png)
Dim h
With Extree1
.Columns.Add("Default")
With .Items
h = .AddItem("Root 1")
.InsertItem(h,Nothing,"Child 1")
.InsertItem(h,Nothing,"Child 2")
.set_ExpandItem(h,True)
.set_ItemBold(.get_ItemParent(.get_ItemChild(h)),True)
End With
End With
|
294
|
How do I get the first child item
![](images/extreeq294.png)
Dim h
With Extree1
.Columns.Add("Default")
With .Items
h = .AddItem("Root 1")
.InsertItem(h,Nothing,"Child 1")
.InsertItem(h,Nothing,"Child 2")
.set_ExpandItem(h,True)
.set_ItemBold(.get_ItemChild(h),True)
End With
End With
|
293
|
How do I enumerate the root items
![](images/extreeq293.png)
Dim h
With Extree1
.Columns.Add("Default")
With .Items
h = .AddItem("Root 1")
.InsertItem(h,Nothing,"Child 1")
.InsertItem(h,Nothing,"Child 2")
.set_ExpandItem(h,True)
h = .AddItem("Root 2")
.InsertItem(h,Nothing,"Child 1")
.InsertItem(h,Nothing,"Child 2")
.set_ItemBold(.get_RootItem(0),True)
.set_ItemUnderline(.get_RootItem(1),True)
End With
End With
|
292
|
I have a hierarchy, how can I count the number of root items
![](images/extreeq292.png)
Dim h
With Extree1
.Columns.Add("Default")
With .Items
h = .AddItem("Root 1")
.InsertItem(h,Nothing,"Child 1")
.InsertItem(h,Nothing,"Child 2")
.set_ExpandItem(h,True)
h = .AddItem("Root 2")
.InsertItem(h,Nothing,"Child 1")
.InsertItem(h,Nothing,"Child 2")
.AddItem(.RootCount)
End With
End With
|
291
|
How can I make an item unselectable, or not selectable
![](images/extreeq291.png)
Dim h
With Extree1
.Columns.Add("Column")
With .Items
h = .AddItem("unselectable - you can't get selected")
.set_SelectableItem(h,False)
.AddItem("selectable")
End With
End With
|
290
|
How can I hide or show an item
![](images/extreeq290.png)
Dim h
With Extree1
.Columns.Add("Column")
With .Items
h = .AddItem("hidden")
.set_ItemHeight(h,0)
.set_SelectableItem(h,False)
.AddItem("visible")
End With
End With
|
289
|
How can I change the height for all items
![](images/extreeq289.png)
With Extree1
.DefaultItemHeight = 32
.Columns.Add("Column")
.Items.AddItem("One")
.Items.AddItem("Two")
End With
|
288
|
How do I change the height of an item
![](images/extreeq288.png)
With Extree1
.ScrollBySingleLine = True
.Columns.Add("Default")
With .Items
.set_ItemHeight(.AddItem("height"),128)
End With
.Items.AddItem("enabled")
End With
|
287
|
How do I disable or enable an item
![](images/extreeq287.png)
With Extree1
.Columns.Add("Default")
With .Items
.set_EnableItem(.AddItem("disabled"),False)
End With
.Items.AddItem("enabled")
End With
|
286
|
How do I display as strikeout a cell
![](images/extreeq286.png)
With Extree1
.Columns.Add("Default")
With .Items
.set_CellStrikeOut(.AddItem("strikeout"),0,True)
End With
End With
|
285
|
How do I display as strikeout a cell or an item
![](images/extreeq285.png)
With Extree1
.Columns.Add("Default")
With .Items
.set_CellCaptionFormat(.AddItem("gets <s>strikeout</s> only a portion of text"),0,exontrol.EXTREELib.CaptionFormatEnum.exHTML)
End With
End With
|
284
|
How do I display as strikeout an item
![](images/extreeq284.png)
With Extree1
.Columns.Add("Default")
With .Items
.set_ItemStrikeOut(.AddItem("strikeout"),True)
End With
End With
|
283
|
How do I underline a cell
![](images/extreeq283.png)
With Extree1
.Columns.Add("Default")
With .Items
.set_CellUnderline(.AddItem("underline"),0,True)
End With
End With
|
282
|
How do I underline a cell or an item
![](images/extreeq282.png)
With Extree1
.Columns.Add("Default")
With .Items
.set_CellCaptionFormat(.AddItem("gets <u>underline</u> only a portion of text"),0,exontrol.EXTREELib.CaptionFormatEnum.exHTML)
End With
End With
|
281
|
How do I underline an item
![](images/extreeq281.png)
With Extree1
.Columns.Add("Default")
With .Items
.set_ItemUnderline(.AddItem("underline"),True)
End With
End With
|
280
|
How do I display as italic a cell
![](images/extreeq280.png)
With Extree1
.Columns.Add("Default")
With .Items
.set_CellItalic(.AddItem("italic"),0,True)
End With
End With
|
279
|
How do I display as italic a cell or an item
![](images/extreeq279.png)
With Extree1
.Columns.Add("Default")
With .Items
.set_CellCaptionFormat(.AddItem("gets <i>italic</i> only a portion of text"),0,exontrol.EXTREELib.CaptionFormatEnum.exHTML)
End With
End With
|
278
|
How do I display as italic an item
![](images/extreeq278.png)
With Extree1
.Columns.Add("Default")
With .Items
.set_ItemItalic(.AddItem("italic"),True)
End With
End With
|
277
|
How do I bold a cell
![](images/extreeq277.png)
With Extree1
.Columns.Add("Default")
With .Items
.set_CellBold(.AddItem("bold"),0,True)
End With
End With
|
276
|
How do I bold a cell or an item
![](images/extreeq276.png)
With Extree1
.Columns.Add("Default")
With .Items
.set_CellCaptionFormat(.AddItem("gets <b>bold</b> only a portion of text"),0,exontrol.EXTREELib.CaptionFormatEnum.exHTML)
End With
End With
|
275
|
How do I bold an item
![](images/extreeq275.png)
With Extree1
.Columns.Add("Default")
With .Items
.set_ItemBold(.AddItem("bold"),True)
End With
End With
|
274
|
How do I change the foreground color for the item
![](images/extreeq274.png)
Dim h,hC
With Extree1
.Columns.Add("Default")
With .Items
h = .AddItem("Root")
hC = .InsertItem(h,Nothing,"Child 1")
.set_ItemForeColor(hC,Color.FromArgb(255,0,0))
.InsertItem(h,Nothing,"Child 2")
.set_ExpandItem(h,True)
End With
End With
|
273
|
How do I change the visual appearance for the item, using your EBN technology
![](images/extreeq273.png)
Dim h,hC
With Extree1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
.Columns.Add("Default")
With .Items
h = .AddItem("Root")
hC = .InsertItem(h,Nothing,"Child 1")
.set_ItemBackColor32(hC,&H1000000)
.InsertItem(h,Nothing,"Child 2")
.set_ExpandItem(h,True)
End With
End With
|
272
|
How do I change the background color for the item
![](images/extreeq272.png)
Dim h,hC
With Extree1
.Columns.Add("Default")
With .Items
h = .AddItem("Root")
hC = .InsertItem(h,Nothing,"Child 1")
.set_ItemBackColor(hC,Color.FromArgb(255,0,0))
.InsertItem(h,Nothing,"Child 2")
.set_ExpandItem(h,True)
End With
End With
|
271
|
How do I expand or collapse an item
![](images/extreeq271.png)
Dim h
With Extree1
.Columns.Add("Default")
With .Items
h = .AddItem("Root")
.InsertItem(h,Nothing,"Child 1")
.InsertItem(h,Nothing,"Child 2")
.set_ExpandItem(h,True)
End With
End With
|
270
|
How do I associate an extra data to an item
With Extree1
.Columns.Add("Default")
With .Items
.set_ItemData(.AddItem("item"),"your extra data")
End With
End With
|
269
|
How do I get the number or count of items
![](images/extreeq269.png)
Dim h
With Extree1
.Columns.Add("Default")
With .Items
h = .AddItem("Root")
.InsertItem(h,Nothing,"Child 1")
.InsertItem(h,Nothing,"Child 2")
.set_ExpandItem(h,True)
End With
With .Items
.AddItem(.ItemCount)
End With
End With
|
268
|
How can I specify the width of the ActiveX control, when using the InsertControlItem property
![](images/extreeq268.png)
Dim h
With Extree1
.ScrollBySingleLine = False
.TreeColumnIndex = 1
.DrawGridLines = exontrol.EXTREELib.GridLinesEnum.exAllLines
.Columns.Add("C1")
.Columns.Add("C2")
.Columns.Add("C3")
With .Items
h = .InsertControlItem(Nothing,"MSCAL.Calendar")
.set_ItemWidth(h,128)
.set_CellCaption(h,0,"This is a bit of text that is shown in the first column")
.set_CellSingleLine(h,0,exontrol.EXTREELib.CellSingleLineEnum.exCaptionWordWrap)
.set_CellCaption(h,2,"This is a bit of text that is shown in the third column")
.set_CellSingleLine(h,2,exontrol.EXTREELib.CellSingleLineEnum.exCaptionWordWrap)
End With
End With
|
267
|
How can I put the ActiveX control in a different column, when using the InsertControlItem property
![](images/extreeq267.png)
Dim h
With Extree1
.ScrollBySingleLine = False
.DrawGridLines = exontrol.EXTREELib.GridLinesEnum.exAllLines
.Columns.Add("C1")
.Columns.Add("C2")
.Columns.Add("C3")
With .Items
h = .InsertControlItem(Nothing,"MSCAL.Calendar")
.set_CellCaption(h,0,"This is a bit of text that is shown in the first column")
.set_CellSingleLine(h,0,exontrol.EXTREELib.CellSingleLineEnum.exCaptionWordWrap)
.set_ItemWidth(h,-32001)
.set_CellCaption(h,2,"This is a bit of text that is shown in the third column")
.set_CellSingleLine(h,2,exontrol.EXTREELib.CellSingleLineEnum.exCaptionWordWrap)
End With
End With
|
266
|
Is there any function I can use to get the program or the control identifier I've been using when called the InsertControlItem
![](images/extreeq266.png)
Dim h
With Extree1
.Columns.Add("Default")
.ScrollBySingleLine = False
.LinesAtRoot = exontrol.EXTREELib.LinesAtRootEnum.exLinesAtRoot
With .Items
h = .InsertControlItem(Nothing,"MSCAL.Calendar")
.InsertItem(h,Nothing,.get_ItemControlID(h))
.set_ExpandItem(h,True)
h = .InsertControlItem(Nothing,"MSChart20Lib.MSChart")
.set_ItemAppearance(h,exontrol.EXTREELib.AppearanceEnum.Etched)
.InsertItem(h,Nothing,.get_ItemControlID(h))
.set_ExpandItem(h,True)
End With
End With
|
265
|
How can I change the height of newly created ActiveX control, using the InsertControlItem
![](images/extreeq265.png)
With Extree1
.Columns.Add("Default")
.ScrollBySingleLine = False
With .Items
.set_ItemHeight(.InsertControlItem(Nothing,"MSCAL.Calendar"),64)
.set_ItemAppearance(.InsertControlItem(Nothing,"MSChart20Lib.MSChart"),exontrol.EXTREELib.AppearanceEnum.Etched)
End With
End With
|
264
|
How can I change the border for newly created ActiveX control, using the InsertControlItem
![](images/extreeq264.png)
With Extree1
.Columns.Add("Default")
.ScrollBySingleLine = False
With .Items
.set_ItemAppearance(.InsertControlItem(Nothing,"MSCAL.Calendar"),exontrol.EXTREELib.AppearanceEnum.Sunken)
.set_ItemAppearance(.InsertControlItem(Nothing,"MSChart20Lib.MSChart"),exontrol.EXTREELib.AppearanceEnum.Etched)
End With
End With
|
263
|
How can I access the properties and methods for an ActiveX control that I've just added using the InsertControlItem
![](images/extreeq263.png)
Dim h
With Extree1
.Columns.Add("Default")
With .Items
h = .AddItem("Root")
With .get_ItemObject(.InsertControlItem(h,"MSCAL.Calendar"))
.BackColor = Color.FromArgb(255,255,255)
.GridCellEffect = 0
.ShowTitle = False
.ShowDateSelectors = False
End With
.set_ExpandItem(h,True)
End With
End With
|
262
|
How can I access the properties and methods for an ActiveX control that I've just added using the InsertControlItem
![](images/extreeq262.png)
Dim h
With Extree1
.Columns.Add("Default")
With .Items
h = .AddItem("Root")
With .get_ItemObject(.InsertControlItem(h,"MSCAL.Calendar"))
.BackColor = Color.FromArgb(255,255,255)
End With
.set_ExpandItem(h,True)
End With
End With
|
261
|
How can I insert an ActiveX control
![](images/extreeq261.png)
Dim h
With Extree1
.Columns.Add("Default")
With .Items
h = .AddItem("Root")
.InsertControlItem(h,"MSCAL.Calendar")
.set_ExpandItem(h,True)
End With
End With
|
260
|
How do I programmatically edit a cell
![](images/extreeq260.png)
With Extree1
.AllowEdit = True
With .Items
.Edit(.FocusItem,0)
End With
End With
|
259
|
How can I change at runtime the parent of the item
![](images/extreeq259.png)
Dim hC,hP
With Extree1
.LinesAtRoot = exontrol.EXTREELib.LinesAtRootEnum.exLinesAtRoot
.Columns.Add("Default")
With .Items
hP = .AddItem("Root")
hC = .AddItem("Child")
.SetParent(hC,hP)
End With
End With
|
258
|
How can I sort the items
![](images/extreeq258.png)
Dim h
With Extree1
.Columns.Add("Default")
With .Items
h = .AddItem("Root")
.InsertItem(h,Nothing,"Child 1")
.InsertItem(h,Nothing,"Child 2")
.set_ExpandItem(h,True)
End With
.Columns.Item("Default").SortOrder = exontrol.EXTREELib.SortOrderEnum.SortDescending
End With
|
257
|
How do I sort the child items
![](images/extreeq257.png)
Dim h
With Extree1
.Columns.Add("Default")
With .Items
h = .AddItem("Root")
.InsertItem(h,Nothing,"Child 1")
.InsertItem(h,Nothing,"Child 2")
.set_ExpandItem(h,True)
.SortChildren(h,0,False)
End With
End With
|
256
|
How can I ensure or scroll the control so the item fits the control's client area
Dim h
With Extree1
.Columns.Add("Default")
h = .Items.AddItem("item")
.Items.EnsureVisibleItem(h)
End With
|
255
|
How can I remove or delete all items
With Extree1
.Columns.Add("Default")
.Items.AddItem("removed item")
.Items.RemoveAllItems()
End With
|
254
|
How can I remove or delete an item
Dim h
With Extree1
.Columns.Add("Default")
h = .Items.AddItem("removed item")
.Items.RemoveItem(h)
End With
|
253
|
How can I add or insert child items
![](images/extreeq253.png)
Dim h
With Extree1
.LinesAtRoot = exontrol.EXTREELib.LinesAtRootEnum.exLinesAtRoot
.Columns.Add("C1")
.Columns.Add("C2")
With .Items
h = .AddItem("Cell 1")
.set_CellCaption(h,1,"Cell 2")
.set_CellCaption(.InsertItem(h,Nothing,"Cell 3"),1,"Cell 4")
.set_CellCaption(.InsertItem(h,Nothing,"Cell 5"),1,"Cell 6")
.set_ExpandItem(h,True)
End With
End With
|
252
|
How can I add or insert a child item
![](images/extreeq252.png)
With Extree1
.LinesAtRoot = exontrol.EXTREELib.LinesAtRootEnum.exLinesAtRoot
.Columns.Add("Default")
With .Items
.InsertItem(.AddItem("root"),Nothing,"child")
End With
End With
|
251
|
How can I add or insert an item
![](images/extreeq251.png)
Dim h
With Extree1
.Columns.Add("C1")
.Columns.Add("C2")
With .Items
.set_CellCaption(.AddItem("Cell 1"),1,"Cell 2")
h = .AddItem("Cell 3")
.set_CellCaption(h,1,"Cell 4")
End With
End With
|
250
|
How can I add or insert an item
![](images/extreeq250.png)
With Extree1
.Columns.Add("Default")
.Items.AddItem("new item")
End With
|
249
|
How can I get the columns as they are shown in the control's sortbar
Dim var_Object
With Extree1
var_Object = .Columns.get_ItemBySortPosition(0)
End With
|
248
|
How can I access the properties of a column
![](images/extreeq248.png)
With Extree1
.Columns.Add("A")
.Columns.Item("A").HeaderBold = True
End With
|
247
|
How can I remove all the columns
With Extree1
.Columns.Clear()
End With
|
246
|
How can I remove a column
With Extree1
.Columns.Remove("A")
End With
|
245
|
How can I get the number or the count of columns
Dim var_Count
With Extree1
var_Count = .Columns.Count
End With
|
244
|
How can I change the font for all cells in the entire column
![](images/extreeq244.png)
Dim f
With Extree1
f = New stdole.StdFont()
With f
.Name = "Tahoma"
.Size = 12
End With
With .ConditionalFormats.Add("1")
.Font = f
.ApplyTo = exontrol.EXTREELib.FormatApplyToEnum.exFormatToColumns
End With
.Columns.Add("Column")
.Items.AddItem(0)
.Items.AddItem(1)
End With
|
243
|
How can I change the background color for all cells in the column
![](images/extreeq243.png)
Dim var_ConditionalFormat
With Extree1
var_ConditionalFormat = .ConditionalFormats.Add("1")
With var_ConditionalFormat
.BackColor = Color.FromArgb(255,0,0)
.ApplyTo = exontrol.EXTREELib.FormatApplyToEnum.exFormatToColumns
End With
.Columns.Add("Column")
.Items.AddItem(0)
.Items.AddItem(1)
End With
|
242
|
How can I change the foreground color for all cells in the column
![](images/extreeq242.png)
Dim var_ConditionalFormat
With Extree1
var_ConditionalFormat = .ConditionalFormats.Add("1")
With var_ConditionalFormat
.ForeColor = Color.FromArgb(255,0,0)
.ApplyTo = exontrol.EXTREELib.FormatApplyToEnum.exFormatToColumns
End With
.Columns.Add("Column")
.Items.AddItem(0)
.Items.AddItem(1)
End With
|
241
|
How can I show as strikeout all cells in the column
![](images/extreeq241.png)
Dim var_ConditionalFormat
With Extree1
var_ConditionalFormat = .ConditionalFormats.Add("1")
With var_ConditionalFormat
.StrikeOut = True
.ApplyTo = exontrol.EXTREELib.FormatApplyToEnum.exFormatToColumns
End With
.Columns.Add("Column")
.Items.AddItem(0)
.Items.AddItem(1)
End With
|
240
|
How can I underline all cells in the column
![](images/extreeq240.png)
Dim var_ConditionalFormat
With Extree1
var_ConditionalFormat = .ConditionalFormats.Add("1")
With var_ConditionalFormat
.Underline = True
.ApplyTo = exontrol.EXTREELib.FormatApplyToEnum.exFormatToColumns
End With
.Columns.Add("Column")
.Items.AddItem(0)
.Items.AddItem(1)
End With
|
239
|
How can I show in italic all data in the column
![](images/extreeq239.png)
Dim var_ConditionalFormat
With Extree1
var_ConditionalFormat = .ConditionalFormats.Add("1")
With var_ConditionalFormat
.Italic = True
.ApplyTo = exontrol.EXTREELib.FormatApplyToEnum.exFormatToColumns
End With
.Columns.Add("Column")
.Items.AddItem(0)
.Items.AddItem(1)
End With
|
238
|
How can I bold the entire column
![](images/extreeq238.png)
Dim var_ConditionalFormat
With Extree1
var_ConditionalFormat = .ConditionalFormats.Add("1")
With var_ConditionalFormat
.Bold = True
.ApplyTo = exontrol.EXTREELib.FormatApplyToEnum.exFormatToColumns
End With
.Columns.Add("Column")
.Items.AddItem(0)
.Items.AddItem(1)
End With
|
237
|
How can I display a computed column and highlight some values that are negative or less than a value
![](images/extreeq237.png)
Dim var_ConditionalFormat
With Extree1
.Columns.Add("A")
.Columns.Add("B")
.Columns.Add("(A+B)*1.19").ComputedField = "(%0 + %1) * 1.19"
With .Items
.set_CellCaption(.AddItem(1),1,2)
End With
With .Items
.set_CellCaption(.AddItem(10),1,20)
End With
var_ConditionalFormat = .ConditionalFormats.Add("%2 > 10")
With var_ConditionalFormat
.Bold = True
.ForeColor = Color.FromArgb(255,0,0)
.ApplyTo = &H2
End With
End With
|
236
|
Can I display a computed column so it displays the VAT, or SUM
![](images/extreeq236.png)
With Extree1
.Columns.Add("A")
.Columns.Add("B")
.Columns.Add("(A+B)*1.19").ComputedField = "(%0 + %1) * 1.19"
With .Items
.set_CellCaption(.AddItem(1),1,2)
End With
With .Items
.set_CellCaption(.AddItem(10),1,20)
End With
End With
|
235
|
How can I show a column that adds values in the cells
![](images/extreeq235.png)
With Extree1
.Columns.Add("A")
.Columns.Add("B")
.Columns.Add("A+B").ComputedField = "%0 + %1"
With .Items
.set_CellCaption(.AddItem(1),1,2)
End With
With .Items
.set_CellCaption(.AddItem(10),1,20)
End With
End With
|
234
|
Is there any function to filter the control's data as I type, so the items being displayed include the typed characters
![](images/extreeq234.png)
Dim var_Column
With Extree1
var_Column = .Columns.Add("Filter")
With var_Column
.FilterOnType = True
.DisplayFilterButton = True
.AutoSearch = exontrol.EXTREELib.AutoSearchEnum.exContains
End With
.Items.AddItem("Canada")
.Items.AddItem("USA")
End With
|
233
|
Is there any function to filter the control's data as I type, something like filter on type
![](images/extreeq233.png)
Dim var_Column
With Extree1
var_Column = .Columns.Add("Filter")
With var_Column
.FilterOnType = True
.DisplayFilterButton = True
End With
.Items.AddItem("Canada")
.Items.AddItem("USA")
End With
|
232
|
How can I programmatically filter a column
![](images/extreeq232.png)
With Extree1
With .Columns.Add("Filter")
.DisplayFilterButton = True
.FilterType = exontrol.EXTREELib.FilterTypeEnum.exNonBlanks
End With
.Items.AddItem()
.Items.AddItem("not empty")
.ApplyFilter()
End With
|
231
|
How can I show or display the control's filter
![](images/extreeq231.png)
With Extree1
.Columns.Add("Filter").DisplayFilterButton = True
End With
|
230
|
How can I customize the items being displayed in the drop down filter window
![](images/extreeq230.png)
With Extree1
With .Columns.Add("Custom Filter")
.DisplayFilterButton = True
.DisplayFilterPattern = False
.CustomFilter = "Excel Spreadsheets (*.xls )||*.xls|||Word Documents||*.doc|||Powerpoint Presentations||*.pps|||Text Documents (*.log,*.txt)||*." & _
"txt|*.log"
.FilterType = exontrol.EXTREELib.FilterTypeEnum.exPattern
.Filter = "*.xls"
End With
.Items.AddItem("excel.xls")
.Items.AddItem("word.doc")
.Items.AddItem("pp.pps")
.Items.AddItem("text.txt")
.ApplyFilter()
End With
|
229
|
How can I change the order or the position of the columns in the sort bar
![](images/extreeq229.png)
With Extree1
.SortBarVisible = True
.SortBarColumnWidth = 48
.Columns.Add("C1").SortOrder = exontrol.EXTREELib.SortOrderEnum.SortAscending
.Columns.Add("C2").SortOrder = exontrol.EXTREELib.SortOrderEnum.SortDescending
.Columns.Item("C2").SortPosition = 0
End With
|
228
|
How do I arrange my columns on multiple levels
![](images/extreeq228.png)
With Extree1
.Columns.Add("S").Width = 32
.Columns.Add("Level 2").LevelKey = 1
.Columns.Add("Level 3").LevelKey = 1
.Columns.Add("Level 4").LevelKey = 1
.Columns.Add("Level 1").LevelKey = "2"
.Columns.Add("Level 2").LevelKey = "2"
.Columns.Add("Level 3").LevelKey = "2"
.Columns.Add("Level 4").LevelKey = "2"
.Columns.Add("E").Width = 32
End With
|
227
|
How do I arrange my columns on multiple lines
![](images/extreeq227.png)
With Extree1
.HeaderHeight = 32
.Columns.Add("").HTMLCaption = "Line 1<br>Line 2"
End With
|
226
|
How can I display all cells using HTML format
![](images/extreeq226.png)
With Extree1
.Columns.Add("HTML").set_Def(exontrol.EXTREELib.DefColumnEnum.exCellCaptionFormat,1)
.Items.AddItem("<font ;12>T</font>his <b>is</b> an <a>html</a> <font Tahoma><fgcolor=FF0000>text</fgcolor></font>.")
End With
|
225
|
How can I display all cells using multiple lines
![](images/extreeq225.png)
With Extree1
.Columns.Add("MultipleLine").set_Def(exontrol.EXTREELib.DefColumnEnum.exCellSingleLine,False)
.Columns.Add("SingleLine").set_Def(exontrol.EXTREELib.DefColumnEnum.exCellSingleLine,True)
With .Items
.set_CellCaption(.AddItem("This is a bit of long text that should break the line"),1,"this is a bit of long text that's displayed on a single line")
End With
End With
|
224
|
How do change the vertical alignment for all cells in the column
![](images/extreeq224.png)
With Extree1
.Columns.Add("MultipleLine").set_Def(exontrol.EXTREELib.DefColumnEnum.exCellSingleLine,False)
.Columns.Add("VAlign").set_Def(exontrol.EXTREELib.DefColumnEnum.exCellVAlignment,2)
With .Items
.set_CellCaption(.AddItem("This is a bit of long text that should break the line"),1,"bottom")
End With
With .Items
.set_CellCaption(.AddItem("This is a bit of long text that should break the line"),1,"bottom")
End With
End With
|
223
|
How do change the foreground color for all cells in the column
![](images/extreeq223.png)
With Extree1
.Columns.Add("ForeColor").set_Def(exontrol.EXTREELib.DefColumnEnum.exCellForeColor,255)
.Items.AddItem(0)
.Items.AddItem(1)
End With
|
222
|
How do change the background color for all cells in the column
![](images/extreeq222.png)
With Extree1
.Columns.Add("BackColor").set_Def(exontrol.EXTREELib.DefColumnEnum.exCellBackColor,255)
.Items.AddItem(0)
.Items.AddItem(1)
End With
|
221
|
How do I show buttons for all cells in the column
![](images/extreeq221.png)
With Extree1
With .Columns.Add("Button")
.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellHasButton,True)
.set_Def(exontrol.EXTREELib.DefColumnEnum.exCellButtonAutoWidth,True)
End With
.Items.AddItem(" Button 1 ")
.Items.AddItem(" Button 2 ")
End With
|
220
|
How do I show buttons for all cells in the column
![](images/extreeq220.png)
With Extree1
.Columns.Add("Button").set_Def(exontrol.EXTREELib.DefColumnEnum.exCellHasButton,True)
.Items.AddItem(0)
.Items.AddItem(1)
End With
|
219
|
How do I display radio buttons for all cells in the column
![](images/extreeq219.png)
With Extree1
.Columns.Add("Radio").set_Def(exontrol.EXTREELib.DefColumnEnum.exCellHasRadioButton,True)
.Items.AddItem(0)
.Items.AddItem(1)
End With
|
218
|
How do I display checkboxes for all cells in the column
![](images/extreeq218.png)
With Extree1
.Columns.Add("Check").set_Def(exontrol.EXTREELib.DefColumnEnum.exCellHasCheckBox,True)
.Items.AddItem(0)
.Items.AddItem(1)
End With
|
217
|
How can I display a tooltip when the cursor hovers the column
![](images/extreeq217.png)
With Extree1
.Columns.Add("tooltip").ToolTip = "This is a bit of text that is shown when user hovers the column."
End With
|
216
|
Is there any function to assign a key to a column instead using its name or capion
![](images/extreeq216.png)
With Extree1
.Columns.Add("Data").Key = "DKey"
.Columns.Item("DKey").Caption = "new caption"
End With
|
215
|
Is there any function to assign any extra data to a column
With Extree1
.Columns.Add("Data").Data = "your extra data"
End With
|
214
|
By default, the column gets sorted descending, when I first click its header. How can I change so the column gets sorted ascending when the user first clicks the column's header
![](images/extreeq214.png)
With Extree1
.Columns.Add("Sort").DefaultSortOrder = True
End With
|
213
|
How can I specify the maximum width for the column, if I use WidthAutoResize property
![](images/extreeq213.png)
With Extree1
With .Columns.Add("Auto")
.WidthAutoResize = True
.MinWidthAutoResize = 32
.MaxWidthAutoResize = 128
End With
.Items.AddItem(0)
.Items.AddItem(1)
End With
|
212
|
How can I specify the minimum width for the column, if I use WidthAutoResize property
![](images/extreeq212.png)
With Extree1
With .Columns.Add("Auto")
.WidthAutoResize = True
.MinWidthAutoResize = 32
End With
.Items.AddItem(0)
.Items.AddItem(1)
End With
|
211
|
Is there any option to resize the column based on its data, captions
![](images/extreeq211.png)
With Extree1
.Columns.Add("A").WidthAutoResize = True
.Items.AddItem(0)
.Items.AddItem(1)
End With
|
210
|
How can I align the icon in the column's header in the center
![](images/extreeq210.png)
With Extree1
.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" & _
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" & _
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" & _
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
With .Columns.Add("")
.HeaderImage = 1
.HeaderImageAlignment = exontrol.EXTREELib.AlignmentEnum.CenterAlignment
End With
End With
|
209
|
How do I align the icon in the column's header to the right
![](images/extreeq209.png)
With Extree1
.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" & _
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" & _
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" & _
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
With .Columns.Add("ColumnName")
.HeaderImage = 1
.HeaderImageAlignment = exontrol.EXTREELib.AlignmentEnum.RightAlignment
End With
End With
|
208
|
How do I show or hide the sorting icons, but still need sorting
![](images/extreeq208.png)
With Extree1
.Columns.Add("Sorted").SortOrder = exontrol.EXTREELib.SortOrderEnum.SortAscending
.Columns.Item(0).DisplaySortIcon = False
End With
|
207
|
How do I enable or disable the entire column
![](images/extreeq207.png)
With Extree1
.Columns.Add("C1")
.Columns.Add("Disabled").Enabled = False
With .Items
.set_CellCaption(.AddItem(0),1,"0.1")
End With
With .Items
.set_CellCaption(.AddItem(1),1,"1.1")
End With
End With
|
206
|
How do I disable drag and drop columns
With Extree1
.Columns.Add("C1").AllowDragging = False
.Columns.Add("C2").AllowDragging = False
End With
|
205
|
How do I disable resizing a column at runtime
![](images/extreeq205.png)
With Extree1
.Columns.Add("Unsizable").AllowSizing = False
.Columns.Add("C2")
.Columns.Add("C3")
.Columns.Add("C4")
End With
|
204
|
How can I align the column to the right, and its caption too
![](images/extreeq204.png)
With Extree1
With .Columns.Add("Column")
.Alignment = exontrol.EXTREELib.AlignmentEnum.RightAlignment
.HeaderAlignment = exontrol.EXTREELib.AlignmentEnum.RightAlignment
End With
.Items.AddItem(0)
.Items.AddItem(1)
End With
|
203
|
How can I align the column to the right
![](images/extreeq203.png)
With Extree1
.Columns.Add("Column").Alignment = exontrol.EXTREELib.AlignmentEnum.RightAlignment
.Items.AddItem(0)
.Items.AddItem(1)
End With
|
202
|
How do I change the column's caption
![](images/extreeq202.png)
With Extree1
.Columns.Add("Column").Caption = "new caption"
End With
|
201
|
Can I change the visual effect, appearance for the anchor, hyperlink elements, in HTML captions, after the user clicks it
![](images/extreeq201.png)
With Extree1
.set_FormatAnchor(False,"<b><u><fgcolor=880000> </fgcolor></u></b>")
.Columns.Add("Column")
With .Items
.set_CellCaptionFormat(.AddItem("Just an <a1>anchor</a> element ..."),0,exontrol.EXTREELib.CaptionFormatEnum.exHTML)
End With
With .Items
.set_CellCaptionFormat(.AddItem("Just another <a2>anchor</a> element ..."),0,exontrol.EXTREELib.CaptionFormatEnum.exHTML)
End With
.Items.AddItem("next item")
End With
|